﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using FreeFlow.Administration;

namespace FreeFlowAdministrator
{
  public partial class WorkflowVersionsControl : AdminUserControl
  {
    public WorkflowVersionsControl()
    {
      InitializeComponent();
    }

    internal void LoadVersions(WorkflowVersionCollection versions)
    {
      versionsGrid.DataSource = versions;
      versionsGrid.ClearColumns();
      versionsGrid.AddColumn("PublishedTime", "Published Time");
      versionsGrid.AddColumn("Version");
      versionsGrid.AddColumn("FullyQualifiedTypeName", "Fully Qualified Type Name");
      versionsGrid.AddColumn("FullyQualifiedAssemblyName", "Fully Qualified Assembly Name");
      versionsGrid.AddColumn("Guid");
      versionsGrid.AutosizeColumns();
    }
  }
}
